#include <REGX52.H> //尖括号表示在安装目录下找
#include "Delay.h" //双引号表示在本工程找
#include "LCD1602.h"
#include "MatrixKey.h"

unsigned char KeyNum;

void main()
{
	LCD_Init();
	LCD_ShowString(1,1,"MatrixKey:");
	while(1)
	{
		KeyNum=MatrixKey;
		if(KeyNum) //非零即执行,若为零则没有按键按下不进入执行语句
		{
			LCD_ShowNum(2,1,KeyNum,2);
		}
	}
}